import {GET_USERINFO,ANSWER_COUNT} from '../types/user'
import {createAction} from 'redux-actions'
import {service} from '../../service/api.js'
import {post} from '../../util/request'

export const setInfo = createAction(GET_USERINFO, (param) => {
  return post(service.login, param)
})

export const setAnswerCount = createAction(ANSWER_COUNT, (param) => {
  return param
})
